<?php
/**
 * Created by PhpStorm.
 * @author WYZ <wyz@jungo.com.cn>
 * @copyright 深圳市俊网网络有限公司
 */

namespace Selibra\WebSocket;


class WebSocketServerOnStartCallbackCollector
{

    /**
     * @var array
     */
    protected static array $callbacks = [];


    /**
     * @param $class
     * @param $method
     */
    public static function register($class,$method)
    {
        array_push(self::$callbacks,[$class,$method]);
    }


    /**
     * @return array
     */
    public static function getCallbacks()
    {
        return self::$callbacks;
    }

}